import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import "normalize.css"
import "@/detail/mockdata"
import store from "@/store/vuexaddressdata.js"

//引入mitt
import mitt from "mitt"
//引入pinia
// import {createPinia} from "pinia"
//创建一个pinia实例(根store)
// const store=createPinia()

const app = createApp(App);
//使用pinia
app.use(store)

//挂载事务总线
app.config.globalProperties.$bus = new mitt()
app.use(router);

app.mount("#app");
